//空指针

#include<iostream>
#include<string.h>

using namespace std;
int main()
{
	int* p = NULL;
	*p = 100;
	system("pause");
	return 0;
}

//野指针

#include<iostream>
#include<string.h>

using namespace std;
int main()
{
	int* p = (int *)0x1100;
	//访问野指针报错
	cout << *p << endl;
	system("pause");
	return 0;
}
